﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sponsorship.ReadModel.Persons
{
    public class DetailsOfPersonDto : Dto
    {
        public DetailsOfPersonDto()
        {
            Sponsorships = new List<Sponsorship>();
        }

        public string FirstName { get; set; }
        public string LastName { get; set; }
        public Nullable<DateTime> DateOfBirth { get; set; }
        public string TelephoneNumber { get; set; }


        public string Comment { get; set; }

        public bool IsSponsorable { get; set; }


        public IList<Sponsorship> Sponsorships { get; set; }

        public class Sponsorship
        {

            public string SponsorName { get; set; }

            public Guid SponsorshipId { get; set; }

            public DateTime? StartDate { get; set; }

            public Guid SponsorshipTypeId { get; set; }

            public string Period { get; set; }

            public string SponsorshipTypeName { get; set; }

            public decimal Amount { get; set; }

            public string Comment { get; set; }

            public DateTime? EndDate { get; set; }
        }

    }
}
